Open Windows Command Prompt in administrator mode

wsl --install 

restart.

set id and password for your WSL login - does not have to match Windows login.

get the binary, unblock it, and copy to your home directory (~).


tar -xvzf carbon_toolchain-0.0.0-0.nightly.2024.06.26.tar.gz 

rename the folder to carbon0.0

wget https://apt.llvm.org/llvm.sh
chmod u+x llvm.sh
sudo ./llvm.sh 16
sudo apt install \
  clang-16 \
  libc++-16-dev  \
  libc++abi-16-dev \
  lld-16

explorer.exe .

bin/carbon compile ~/samples/three.carbon

ls ~/samples

bin/carbon link  ~/samples/three.o --output=$HOME/samples/three 

ls ~/samples

~/samples/three

echo $?


